import { getEmitFns } from './formatFile.js'

export const formatEmits = (list) => {
  if (list.length === 0) return ''
  const emitFns = getEmitFns()
  return `const emits = defineEmits(${JSON.stringify(emitFns)})`
}
